{% extends 'base.html' %}
{% block title %}
    登录
{% endblock %}
{% block content %}
    <h3>账号登录</h3>
    <hr>
    {#    <h3>{{ data.username }}---{{ data.password }}</h3>#}
    <form class="form form-container" method="post">
        {% if data.error %}
            <div class="alert alert-danger">
                {{ data.error }}
            </div>
        {% endif %}
        <div class="form-group">
            <label for="username">账号:</label>
            <input required maxlength="20" name="username" id="username" class="form-control" type="text" placeholder="请输入账号"/>
        </div>
        <div class="form-group">
            <label for="password">密码:</label>
            <input required name="password" maxlength="20" id="password" class="form-control" type="password" placeholder="请输入密码"/>
        </div>
        <div class="form-group">
            <button class="btn btn-outline-primary">立即登录</button>
        </div>
    </form>
{% endblock %}